import 'package:boss/textStyle/text_style.dart';
import 'package:boss/ui/page/miniProgram/miniProgramQrMail/mini_program_qr_mail_page.dart';
import 'package:boss/ui/widget/button/fixed_bottom_double_btn.dart';
import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:boss/ui/widget/custom_divier.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:router/annotation.dart';

@RouterConfig(MiniProgramQrDetailPage.pageName)
class MiniProgramQrDetailPage extends StatefulWidget {
  static const pageName = '/MiniProgramQrDetailPage';

  @override
  _MiniProgramQrDetailPageState createState() => _MiniProgramQrDetailPageState();
}

class _MiniProgramQrDetailPageState extends BaseState<MiniProgramQrDetailPage> {
  _MiniProgramQrDetailPageState() : super(MiniProgramQrDetailPage.pageName);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CenterTitleAppBar(title: '生成二维码'),
      body: Column(
        children: [
          Expanded(
            child: SingleChildScrollView(
              padding: EdgeInsets.zero,
              child: Column(
                children: [
                  Container(
                    height: 120.w,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: [
                        Text('二维码已成功生成', style: TextStyleConstant().normal_1_36),
                      ],
                    ),
                  ),
                  CustomDivider(
                    margin: EdgeInsets.only(bottom: 20.w),
                  ),
                  Text('请将下方生成的二维码制作成粘性桌贴，并张贴在对应桌台上', style: TextStyleConstant().normal_3_20),
                ],
              ),
            ),
          ),
          FixedBottomDoubleBtn(
            first: '保存到手机',
            second: '发送到邮箱',
            onSecond: () {
              Navigator.pushNamed(context, MiniProgramQrMailPage.pageName);
            },
          ),
        ],
      ),
    );
  }
}
